body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
}

html {
    height: 228px;
    scroll-behavior: smooth;
}

#notes {
    color: rgba(0, 0, 0, 0.425);
    font-size: 10px;
}

#time {
    text-align: center;
}

#newBody {
    width: 100%;
    height: 110%;
}

.container,
.health,
.air,
.map,
.searchdata,
#typing-test,
.share-screen {
    max-width: 500px;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.418);
    /* Set the background color to be transparent */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* Adjust the alpha value here for the box shadow transparency */
    margin-top: 0px;
    transition: transform 0.3s ease-in-out;
    float: left;
}
/* @media screen and (max-width: 480px) { */
#footer {
    max-width: 500px;
    text-align: center;
    padding: 20px;
    float: left;
    margin-top: 0px;
}

#countdown {
    max-width: 40cm;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.418);
    /* Set the background color to be transparent */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* Adjust the alpha value here for the box shadow transparency */
    margin-top: 0px;
    transition: transform 0.3s ease-in-out;
    float: left;
}
/* } */
    .container,
    .health,
    .air,
    .map,
    .searchdata,
    #typing-test,
    .share-screen,
    #countdown {
        margin: 0cm 0cm 2cm 1cm;
    }



.forecast1 {
    max-width: 600px;
    width: 9cm;
    margin: 0cm 0cm 1cm ;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.418);
    /* Set the background color to be transparent */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* Adjust the alpha value here for the box shadow transparency */
    margin-top: 0px;
    transition: transform 0.3s ease-in-out;
    float: left;
}

#refresh {
    background-color: black;
    border-radius: 100%;
    display: block;
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 99;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    color: white;
    /* Text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 15px;
    /* Some padding */
    border-radius: 100%;
    /* Rounded corners */
    font-size: 18px;
    /* Increase font size */
}

#datetime,
#update-time {
    color: #ff4500;
    /*border: orangered solid 0.1px;
    border-radius: 10px;*/
}

.container:hover,
.forecast1:hover,
.health:hover,
.air:hover,
.map:hover,
.searchdata:hover,
#typing-test:hover,
#share-screen:hover,
#countdown:hover {
    transform: scale(1.05);
}

textarea {
    resize: none;
    user-select: none;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

#weatherin,
#aqi_bcolor {
    border: 0.1px solid #000000;
    border-radius: 10px;
}

.weather {
    max-width: 450px;
    margin: 0cm 0cm 1cm 2cm;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.418);
    /* Set the background color to be transparent */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* Adjust the alpha value here for the box shadow transparency */
    margin-top: 0px;
    transition: transform 0.3s ease-in-out;
    /*overflow: auto;*/
}

.weather:hover {
    transform: scale(0.5);
}

.health {
    margin-left: 0 !important;
    margin-top: 0 !important;
    display: block;
    float: none !important;
    clear: both !important;
}
.air {
    margin-left: 0 !important;
    margin-top: 0 !important;
    float: none !important;
    clear: both !important;
}

/* Panels */

.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    width: 426.22px;
    transition: 0.3s;
}

.active,
.accordion:hover {
    background-color: #ccc;
}

.accordion:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: '\2212';
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.2s ease-out; */
}


@media screen and (max-width: 480px) {
    body {
        max-width: 480px;
    }
    #newBody {
        max-width: 480px;
    }

    #maps {
        margin-top: -7cm;
    }
}

@media screen and (min-width: 481px) and (max-width: 1024px) {
    body {
        max-width: 1024px;
    }
    #newBody {
        max-width: 1024px;
        /* line-height: 1.5; */
    }
}

/*

.forecast {
    max-width: 500px;
    margin: 0cm 0cm 14cm 1cm;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.418);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    transition: transform 0.3s ease-in-out;
}
.forecast:hover {
    transform: scale(1.05);
}
*/
/*
.container div {
    width: 50%;
    float: left;
}*/
/*.container-info {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-top: 105px;
    transition: transform 0.3s ease-in-out;
}
.container-info:hover {
    transform: scale(1.05);
}*/

h1 {
    font-size: 24px;
}

.fc_label {
    text-align: center;
}

.fa {
    padding: 20px;
    font-size: 30px;
    width: 30px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
}

.fa-facebook {
    background: #3B5998;
    color: white;
}

#snackbar {
    visibility: hidden;
    max-width: 300px;
    margin-left: -150px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

input[type="text"] {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    width: 130px;
    border-radius: 5px;
}

input[type="search"] {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 130px;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

.fa {
    padding: 20px;
    font-size: 30px;
    width: 30px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
}

.fa-facebook {
    background: #3B5998;
    color: white;
}

#diachi,
#diachi1 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2196F3;
}

input[type="search"]:focus {
    outline: none;
    border-color: #2196F3;
}

/*input[type="text"], input[type="search"]:hover {
    transform: scale(1.05);
}
#apikey {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    user-select: none;
}*/
#sunrise,
#pressure,
#minmaxtemp,
#sealevel,
#winddir {
    font-size: 13px;
}

.container-info {
    margin-top: 0px;
}

#rss-image {
    zoom: 0.1;
}

#mymodal {
    text-align: center;
}

@media screen and (min-width: 1024px) {

    #health {
        margin-top: -8cm;
        margin-left: 2.5cm;
    }
}
@media screen and (min-width: 481px) and (max-width: 1024px) {

    #health {
        margin-top: 8cm;
        margin-left: 2.5cm;
    }
}

.hr_today {
    border: 0.75px dashed grey;
}
@media (max-width: 600px) {
    html, body {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        font-size: 16px !important;
        padding: 0;
        margin: 0;
    }
    #newBody {
        width: 100% !important;
        height: auto !important;
        max-width: 100vw !important;
        padding: 0;
    }
    #typing-test {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 10px 0 !important;
        float: none !important;
        clear: both !important; /* Đảm bảo không bị dính với phần trước/sau */
        padding: 10px !important;
        box-sizing: border-box;
        display: block !important;
    }
    #astronomy {
        width: 100% !important;
        margin: 10px 0 !important;
        margin-left: 0cm !important;
        float: none !important;
        clear: both !important;
        display: block !important;
    }
    #as-lm {
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px !important;
        box-sizing: border-box;
        font-size: 14px !important;  /* hoặc nhỏ hơn nếu cần */
        overflow-x: auto !important; /* Cho phép cuộn ngang nếu có bảng hoặc nội dung dài */
        border-radius: 8px !important;
        margin: 10px 0 !important;
        /* background: rgba(255,255,255,0.7);*/ /*Tùy chỉnh nếu muốn */
    }
    .container,
    .health,
    .air,
    .map,
    .searchdata,
    /* #typing-test, */
    .share-screen,
    #countdown,
    .forecast1,
    .weather {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 10px 0 !important;
        float: none !important;
        padding: 10px !important;
        box-sizing: border-box;
    }
    #typing-test {
        width: 100% !important;
        max-width: 100vw !important;
        margin-top: -15cm !important;
        float: none !important;
        padding: 10px !important;
        box-sizing: border-box;
    }
    .health {
        margin-left: 0 !important;
        margin-top: 6.5cm !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        box-sizing: border-box;
        display: block;
    }
    .air {
        margin-left: 0 !important;
        margin-top: 0 !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        box-sizing: border-box;
        display: block;
    }
    input[type="text"],
    input[type="search"],
    textarea {
        width: 100% !important;
        font-size: 1em !important;
    }
    img, video {
        max-width: 100% !important;
        height: auto !important;
    }
    /* #refresh {
        right: 10px !important;
        bottom: 10px !important;
        padding: 10px !important;
        font-size: 16px !important;
    } */
    .accordion {
        width: 100% !important;
        font-size: 1em !important;
    }
}